home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
mscfunct
/
com_putc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1987-05-08
|
226b
|
14 lines
#include <dos.h>
unsigned int com_putc( port, c ) int port; char c;
{
union REGS regs;
regs.x.ax = 0x0100 + c;
regs.x.dx = port;
int86( 0x14, ®s, ®s );
return( regs.x.ax );
}